@charset "utf-8";
/* header */
$header-height:44px; // header高度
$header-bgColor:#fff; // header背景色
$header-fontColor:#333; // header字体颜色
$header-fontSize:16px; // header字体大小
/* tabbar */
$tabbar-height: 50px; // tabbar高度
$tabbar-bgColor: #fff; // tabbar背景色
$tabbar-borderColor:#CCC; // tabbar边框颜色
$tabbar-fontSize: 12px; // tabbar字体大小
$tabbar-fontColor: #666; // tabbar字体颜色
$tabbar-active-fontColor: #007CC2; // tabbar选中字体颜色

/* app内容背景色 */
$main-bgColor:#F2F2F2;

/* @function */

/* @mixin */
@mixin empty {
  .empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0.15rem;

    img {
      height: 1.69rem;
      margin-top: 0.35rem;
    }

    p {
      font-size: 0.14rem;
      color: #999;
      line-height: 0.17rem;

      &:first-of-type {
        margin-top: 0.1rem;
      }

      &:last-of-type {
        margin-bottom: 0.3rem;
      }
    }

    .btn {
      width: 100%;
    }
  }
}

@mixin list {
  $color-normal: #25A54C;
  $color-warn: #EEB361;
  $color-error: #E56151;
  $btn-height: 0.19rem;
  $btn-color: #3A9BDE;
  $padding-15: 0.15rem;
  padding: 0.1rem 0.15rem;

  .item {
    background: #fff;
    border-radius: 0.04rem;
    margin-bottom: 0.1rem;
    border-left:0.03rem solid #{$color-normal};

    &.warn {
      border-left:0.03rem solid #{$color-warn};
    }

    &.error {
      border-left:0.03rem solid #{$color-error};
    }

    .head {
      width: 100%;
      height: .43rem;
      padding: 0 $padding-15;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 0.01rem solid #e5e5e5;

      .name {
        font-size: 0.17rem;
        color: #333;
      }

      .btn-group button {
        width: auto;
        min-width: 0.68rem;
        height: .24rem;
        line-height: .24rem;
        margin-left: 0.15rem;
        font-size: 0.14rem;
        color: $btn-color;
        border-radius: 0.02rem;
        border:0.01rem solid #{$btn-color};
      }
    }

    .body {
      padding: $padding-15;

      ul li {
        display: flex;
        font-size: 0.14rem;
        margin-bottom: 0.1rem;

        &:last-child {
          margin-bottom: 0;
        }

        .title {
          display: inline-block;
          color: #999;
          width: 0.86rem;
        }

        .content {
          flex: 1;
          color: #151515;
          position: relative;
          display: flex;
          align-items: flex-start;

          i.edit {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 0.15rem;
            height: 0.15rem;
            background-image: url('~@/assets/images/common/edit.png');
            background-size: 100% 100%;
          }

          a {
            display: inline-block;
            width: 0.12rem;
            height: 0.14rem;
            margin-left: 0.15rem;
            background-image: url('~@/assets/images/common/phone-call.png');
            background-size: 100% 100%;
          }
        }
      }
    }
  }
}

@mixin msgbox {
  .msgbox-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 9;

    .msgbox-mask {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
    }

    .msgbox {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translateX(-50%) translateY(-50%);
      border-radius: 0.04rem;
      background-color: #fff;
      animation: opacity-scale 0.15s ease-in 0s;

      @keyframes opacity-scale {
        0% {
          opacity: 0;
          transform: translateX(-50%) translateY(-50%) scale(0.6);
        }

        100% {
          opacity: 1;
          transform: translateX(-50%) translateY(-50%) scale(1);
        }
      }

      .msgbox-header {
        $height: 0.57rem;
        height: $height;
        line-height: $height;
        text-align: center;
        font-size: 0.17rem;
        color: #333;
      }

      .msgbox-content {
        padding: 0 0.15rem;

        .select {
          display: flex;
          align-items: center;
          justify-content: flex-start;
          height: 0.25rem;
          font-size: 0.15rem;
          color: #5e5e5e;
          margin-bottom: 0.06rem;

          .title {
            margin-right: 0.15rem;
          }

          /deep/ .mint-radiolist {
            display: flex;
            align-items: center;
          }

          /deep/ .mint-cell {
            margin-right: 0.1rem;
          }

          /deep/ .mint-radio-label {
            font-size: 0.15rem;
            color: #333;
          }
        }

        p {
          color: #666;
          font-size: 0.13rem;
          text-align: center;
          margin-bottom: 0.1rem;
        }

        .textarea,
        .list,
        .empty,
        .pickbox {
          width: 2.42rem;
          height: 0.92rem;
          border: 1px solid #E5E5E5;
          margin-bottom: 0.1rem;
          overflow: auto;
          -webkit-overflow-scrolling: touch;

          /deep/ .mint-cell-wrapper {
            font-size: 0.12rem;
          }

          /deep/ .mint-cell-value {
            height: 100%;
          }

          /deep/ textarea {
            height: 100%;
          }
        }

        .empty,
        .pickbox {
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 0.13rem;
          color: #333;
        }

        .list {
          height: 1.2rem;
        }

        .list li {
          $height: 0.24rem;
          height: $height;
          line-height: $height;
          width: 100%;
          color: #333;
          font-size: 0.13rem;
          text-align: center;

          &.active {
            background-color: #3A9BDE;
            color: #fff;
          }
        }
      }

      .msgbox-btns {
        $border-color: #E9E9E9;
        height: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top: 1px solid $border-color;

        button {
          flex: 1;
          height: 100%;
          font-size: 0.18rem;
          color: #5e5e5e;
          background-color: transparent;

          &:first-child {
            border-right: 1px solid $border-color;
          }

          &:last-child {
            color: #3A9BDE;
          }
        }
      }
    }
  }
}

@mixin pickerToolBar {
  .pickerToolBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    width: 100%;
    border-bottom: 1px solid #e5e7e8;
    box-shadow: 0px 2px 12px #e0e0e0;
    font-size: 0.14rem;

    button {
      padding: 3px 10px;
      border-radius: 2px;
      background-color: transparent;
      border: 1px solid #e5e7e8;
      font-size: inherit;

      &:last-child {
        background-color: #26a2ff;
        color: white;
        border: none;
      }
    }
  }
}